package nz.ac.massey.jbuif.editor.components;

import javax.swing.JLabel;
import nz.ac.massey.jbuif.editor.BeanEditor;

/**
 * Class BlankInfoPanel
 * @author Daniel Haselden
 *
 */
public class BlankInfoPanel extends BaseComponent {

	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private String propertyType = ""; 
	private JLabel blankLabel;
	
	
	/**
	 * BlankInfoPanel
	 * @param p bean editor instance
	 * @param name string name
	 * @param displayName string name to be display
	 * @param pev an object
	 */
	public BlankInfoPanel(BeanEditor p,String name,String displayName,Object pev) {
		super(p, name,displayName, pev);
		
		blankLabel = new JLabel();
		blankLabel.setText("No editor found");
		super.addPropertyComponent(blankLabel);	
	}	
	
	
	/**
	 * setPropertyType set the property type
	 * @param s a string
	 */
	public void setPropertyType(String s){
		propertyType = s;
		blankLabel.setText("No editor found for type "+s);
	}
		
}
